Q3Set_Add
You can use theQ3Set_Add
function to add an element to a set.
TQ3Status Q3Set_Add ( TQ3SetObject set, TQ3ElementType type, const void *data);
set
- A set object.
type
- An element type.
data
- A pointer to the element's data.
DESCRIPTION
TheQ3Set_Add
function adds the element specified by thetype
anddata
parameters to the set specified by theset
parameter. The set must already exist when you callQ3Set_Add
. Note that the element data is copied into the set. Accordingly, you can reuse thedata
parameter once you have calledQ3Set_Add
.If the specified element type is a custom element type,
Q3Set_Add
uses the custom type'skQ3MethodTypeElementCopyAdd
orkQ3MethodTypeElementCopyReplace
custom methods. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.